remove HAVE_LINUX_HID support from builds. (#465)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 20 Jan 2020 18:01:12 +0000 (11:01 -0700)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 18:01:12 +0000 (11:01 -0700)
We haven't used this for some time.

CMakeLists.txt
GPSBabel.pro
config.h.in
configure
configure.ac

index 044e7eb95266712296262e7eed2df4a2b0c5fd31..673e38abf192ccc12a3bb61c37c282676863100f 100644 (file)
@@ -219,10 +219,6 @@ if(MSVC)
   add_compile_options(/MP -wd4100)
 endif()
 
-if (CMAKE_SYSTEM_NAME MATCHES "Linux")
-  add_definitions(-DHAVE_LINUX_HID)
-endif()
-
 if (UNIX AND NOT APPLE)
   set(LIBS ${LIBS} usb-1.0)
 endif()
index d08db3e17a9c2a2b53d5f19a6d483e73916aff06..13b2cf4165e9fd3f10624b13f12f77f4c7412058 100644 (file)
@@ -205,10 +205,6 @@ win32-msvc* {
   QMAKE_CXXFLAGS += /MP -wd4100
 }
 
-linux {
-  DEFINES += HAVE_LINUX_HID
-}
-
 linux|openbsd {
   LIBS += "-lusb-1.0"
 }
index 1fbfeac3dfaad51a774d380086921c5c6d497a25..b43ed4f51129590a821dbb20e874df2b98031c0d 100644 (file)
@@ -24,9 +24,6 @@
 /* Define to 1 if you have the `z' library (-lz). */
 #undef HAVE_LIBZ
 
-/* Defined if you have Linux HID */
-#undef HAVE_LINUX_HID
-
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
 
index 82fd0beaeb03d4360024381bfcc28dbff589552e..ace1c36df8135e9ea7f08587a22686da0c18b6b0 100755 (executable)
--- a/configure
+++ b/configure
@@ -700,6 +700,7 @@ infodir
 docdir
 oldincludedir
 includedir
+runstatedir
 localstatedir
 sharedstatedir
 sysconfdir
@@ -779,6 +780,7 @@ datadir='${datarootdir}'
 sysconfdir='${prefix}/etc'
 sharedstatedir='${prefix}/com'
 localstatedir='${prefix}/var'
+runstatedir='${localstatedir}/run'
 includedir='${prefix}/include'
 oldincludedir='/usr/include'
 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1031,6 +1033,15 @@ do
   | -silent | --silent | --silen | --sile | --sil)
     silent=yes ;;
 
+  -runstatedir | --runstatedir | --runstatedi | --runstated \
+  | --runstate | --runstat | --runsta | --runst | --runs \
+  | --run | --ru | --r)
+    ac_prev=runstatedir ;;
+  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
+  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
+  | --run=* | --ru=* | --r=*)
+    runstatedir=$ac_optarg ;;
+
   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
     ac_prev=sbindir ;;
   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1168,7 +1179,7 @@ fi
 for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
                datadir sysconfdir sharedstatedir localstatedir includedir \
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
+               libdir localedir mandir runstatedir
 do
   eval ac_val=\$$ac_var
   # Remove trailing slashes.
@@ -1321,6 +1332,7 @@ Fine tuning of the installation directories:
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
@@ -6317,45 +6329,6 @@ esac
 
 
 
-case "$target" in #(
-  *-linux-*) :
-
-       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux HID interface" >&5
-$as_echo_n "checking for Linux HID interface... " >&6; }
-       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-               #include <sys/ioctl.h>
-               #include <linux/types.h>
-               #include <linux/hiddev.h>
-               #include <linux/hidraw.h>
-               void f(void) {
-                       struct hidraw_devinfo info;
-                       struct hiddev_field_info finfo;
-                       struct hiddev_usage_ref_multi urefm;
-                       struct hiddev_report_info rinfo;
-                       ioctl(0, HIDIOCGRAWINFO, &info);
-                       ioctl(0, HIDIOCGFIELDINFO, &finfo);
-                       ioctl(0, HIDIOCSUSAGES, &urefm);
-                       ioctl(0, HIDIOCSREPORT, &rinfo);
-               }
-_ACEOF
-if ac_fn_cxx_try_compile "$LINENO"; then :
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
-$as_echo "yes" >&6; }
-
-$as_echo "#define HAVE_LINUX_HID 1" >>confdefs.h
-
-else
-  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
-$as_echo "no" >&6; }
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
- ;; #(
-  *) :
-     ;;
-esac
-
 case "$target" in #(
   *-*-darwin*) :
 
index 520e60582aef1dc2c36299cfb193ac6781dfb0d3..6ec5e70b8c3e1266189311dcce35cc9b68bf5258 100644 (file)
@@ -246,29 +246,6 @@ AC_SUBST(USB_CFLAGS)
 AC_SUBST(OSJEEPS)
 AC_SUBST(GBSER)
 
-dnl Linux HID support
-AS_CASE(["$target"], [*-linux-*], [
-       AC_MSG_CHECKING(for Linux HID interface)
-       AC_COMPILE_IFELSE([AC_LANG_SOURCE([
-               #include <sys/ioctl.h>
-               #include <linux/types.h>
-               #include <linux/hiddev.h>
-               #include <linux/hidraw.h>
-               void f(void) {
-                       struct hidraw_devinfo info;
-                       struct hiddev_field_info finfo;
-                       struct hiddev_usage_ref_multi urefm;
-                       struct hiddev_report_info rinfo;
-                       ioctl(0, HIDIOCGRAWINFO, &info);
-                       ioctl(0, HIDIOCGFIELDINFO, &finfo);
-                       ioctl(0, HIDIOCSUSAGES, &urefm);
-                       ioctl(0, HIDIOCSREPORT, &rinfo);
-               }])],
-               AC_MSG_RESULT(yes)
-               AC_DEFINE(HAVE_LINUX_HID, 1, [Defined if you have Linux HID]),
-               AC_MSG_RESULT(no))
-])
-
 AS_CASE(["$target"], [*-*-darwin*], [
 ], [
        AC_MSG_CHECKING(for reduce relocations)